package com.kust.smarthome.web.model;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

import java.io.Serializable;
import java.time.LocalDateTime;

/**
 * <p>
 * 
 * </p>
 *
 * @author iAuzre
 * @since 2021-07-06
 */
@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
@TableName("rate")
@ApiModel("关系人心率表")
public class Rate implements Serializable {

    private static final long serialVersionUID = 1L;

    @TableId(value = "id", type = IdType.AUTO)
    private Integer id;

    @TableField("user_id")
    @ApiModelProperty(value = "用户id", required = true)
    private Integer userId;

    @TableField("person_id")
    @ApiModelProperty(value = "关系人纤细信息id", required = true)
    private Integer personId;

    @TableField("rate")
    @ApiModelProperty(value = "心率格式: 80;78;....; 当中存储最大数量为70", required = true)
    private String rate;

    @TableField("created")
    @ApiModelProperty(value = "创建时间", required = true)
    private LocalDateTime created;


}
